Signed-off-by: Steven Smith <ssmith@xensource.com>
.poll = xenbus_dev_poll,
};
-static int __init
+int __init
xenbus_dev_init(void)
{
xenbus_dev_intf = create_xen_proc_entry("xenbus", 0400);
return 0;
}
-
-__initcall(xenbus_dev_init);
xen_store_interface = mfn_to_virt(xen_store_mfn);
+ xenbus_dev_init();
+
/* Initialize the interface to xenstore. */
err = xs_init();
if (err) {
postcore_initcall(xenbus_probe_init);
+MODULE_LICENSE("Dual BSD/GPL");
+
static int is_disconnected_device(struct device *dev, void *data)
{
print_device_status);
}
+#ifndef MODULE
static int __init boot_wait_for_devices(void)
{
ready_to_wait_for_devices = 1;
}
late_initcall(boot_wait_for_devices);
+#endif
void xenbus_dev_fatal(struct xenbus_device *dev, int err, const char *fmt,
...);
+int __init xenbus_dev_init(void);
#endif /* _XEN_XENBUS_H */